home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / dflat_r_.arc / CLASSDEF.H < prev    next >
Text File  |  1991-10-02  |  848b  |  34 lines

  1. /* ---------------- classdef.h --------------- */
  2.  
  3. #ifndef CLASSDEF_H
  4. #define CLASSDEF_H
  5.  
  6. typedef struct classdefs {
  7.     CLASS base;                         /* base window class */
  8.     int (*wndproc)(struct window *,enum messages,PARAM,PARAM);
  9.     int attrib;
  10. } CLASSDEFS;
  11.  
  12. extern CLASSDEFS classdefs[];
  13.  
  14. #define SHADOW       0x0001
  15. #define MOVEABLE     0x0002
  16. #define SIZEABLE     0x0004
  17. #define HASMENUBAR   0x0008
  18. #define VSCROLLBAR   0x0010
  19. #define HSCROLLBAR   0x0020
  20. #define VISIBLE      0x0040
  21. #define SAVESELF     0x0080
  22. #define HASTITLEBAR  0x0100
  23. #define CONTROLBOX   0x0200
  24. #define MINMAXBOX    0x0400
  25. #define NOCLIP       0x0800
  26. #define READONLY     0x1000
  27. #define MULTILINE    0x2000
  28. #define HASBORDER    0x4000
  29. #define HASSTATUSBAR 0x8000
  30.  
  31. #define DerivedClass(class) (classdefs[class].base)
  32.  
  33. #endif
  34.